<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Board/nrf6310/esb/esb_ptx_prx/main_esb_ptx_ack_payload.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>



<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF Enhanced Shockburst
   &#160;<span id="projectnumber">version 0.4.2</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('main__esb__ptx__ack__payload_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Board/nrf6310/esb/esb_ptx_prx/main_esb_ptx_ack_payload.c File Reference</div>  </div>
</div>
<div class="contents">

<p>Enhanced Shockburst Transmitter (PTX) example.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="nrf__esb_8h_source.html">nrf_esb.h</a>&quot;</code><br/>
<code>#include &quot;nrf_gpio.h&quot;</code><br/>
</div>
<p><a href="main__esb__ptx__ack__payload_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#gae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function.  <a href="group__esb__ptx__example.html#gae66f6b31b5ad750f1fe042a706a4e3d4"></a><br/></td></tr>
<tr><td colspan="2"><div class="groupHeader">ESB callback function definitions</div></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#ga416a6ef0fc94e7df9054e71c8784095a">nrf_esb_tx_success</a> (uint32_t tx_pipe, int32_t rssi)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">TX success callback.  <a href="group__esb__ptx__example.html#ga416a6ef0fc94e7df9054e71c8784095a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#ga03993c4e0419bbcac77aa0965ecce6ad">nrf_esb_tx_failed</a> (uint32_t tx_pipe)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">TX failed callback (PTX mode only).  <a href="group__esb__ptx__example.html#ga03993c4e0419bbcac77aa0965ecce6ad"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#gab3042dde4c3151c1517f4998378f52ce">nrf_esb_rx_data_ready</a> (uint32_t rx_pipe, int32_t rssi)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">RX data ready callback.  <a href="group__esb__ptx__example.html#gab3042dde4c3151c1517f4998378f52ce"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#ga5e82709bd23aa952a883db3af5b987e0">nrf_esb_disabled</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Disabled callback.  <a href="group__esb__ptx__example.html#ga5e82709bd23aa952a883db3af5b987e0"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="member-group"></a>
Configuration</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae28843c923b3481f8a94798e7ccba523"></a><!-- doxytag: member="main_esb_ptx_ack_payload.c::PIPE_NUMBER" ref="gae28843c923b3481f8a94798e7ccba523" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#gae28843c923b3481f8a94798e7ccba523">PIPE_NUMBER</a>&#160;&#160;&#160;0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">We use pipe 0 in this example. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga2a2f690f8bdeeb4003203ff5e3edaffc"></a><!-- doxytag: member="main_esb_ptx_ack_payload.c::BUTTONS" ref="ga2a2f690f8bdeeb4003203ff5e3edaffc" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#ga2a2f690f8bdeeb4003203ff5e3edaffc">BUTTONS</a>&#160;&#160;&#160;NRF_GPIO_PORT_SELECT_PORT0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">GPIO port for reading from buttons. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga61686d33603491344883775b9b31e172"></a><!-- doxytag: member="main_esb_ptx_ack_payload.c::LEDS" ref="ga61686d33603491344883775b9b31e172" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#ga61686d33603491344883775b9b31e172">LEDS</a>&#160;&#160;&#160;NRF_GPIO_PORT_SELECT_PORT1</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">GPIO port for writing to LEDs. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaed1097d348540e6d609ced933dfaa26b"></a><!-- doxytag: member="main_esb_ptx_ack_payload.c::TX_PAYLOAD_LENGTH" ref="gaed1097d348540e6d609ced933dfaa26b" args="" -->
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#gaed1097d348540e6d609ced933dfaa26b">TX_PAYLOAD_LENGTH</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">We use 1 byte payload length when transmitting. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga996dd574db6502532d3ca245aa0dd8f8"></a><!-- doxytag: member="main_esb_ptx_ack_payload.c::my_tx_payload" ref="ga996dd574db6502532d3ca245aa0dd8f8" args="[1]" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#ga996dd574db6502532d3ca245aa0dd8f8">my_tx_payload</a> [1]</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Payload to send to PRX. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gacf06a0a946eb250ed4f20248181eb3c4"></a><!-- doxytag: member="main_esb_ptx_ack_payload.c::my_rx_payload" ref="gacf06a0a946eb250ed4f20248181eb3c4" args="[32]" -->
static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__esb__ptx__example.html#gacf06a0a946eb250ed4f20248181eb3c4">my_rx_payload</a> [32]</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Placeholder for received ACK payloads from PRX. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Enhanced Shockburst Transmitter (PTX) example. </p>

<p>Definition in file <a class="el" href="main__esb__ptx__ack__payload_8c_source.html">main_esb_ptx_ack_payload.c</a>.</p>
</div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="main__esb__ptx__ack__payload_8c.html">main_esb_ptx_ack_payload.c</a>      </li>

    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
